summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applet_common_functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/am/applet_common_functions.h')
-rw-r--r--src/core/hle/service/am/applet_common_functions.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applet_common_functions.h b/src/core/hle/service/am/applet_common_functions.h
new file mode 100644
index 000000000..b86adf5cb
--- /dev/null
+++ b/src/core/hle/service/am/applet_common_functions.h
@@ -0,0 +1,24 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/service.h"
+
+namespace Service::AM {
+
+struct Applet;
+
+class IAppletCommonFunctions final : public ServiceFramework<IAppletCommonFunctions> {
+public:
+ explicit IAppletCommonFunctions(Core::System& system_, std::shared_ptr<Applet> applet_);
+ ~IAppletCommonFunctions() override;
+
+private:
+ void SetCpuBoostRequestPriority(HLERequestContext& ctx);
+ void GetCurrentApplicationId(HLERequestContext& ctx);
+
+ const std::shared_ptr<Applet> applet;
+};
+
+} // namespace Service::AM